//
//  AutobotsService.m
//  AutobotsPlugin
//
//  Created by 张志恒 on 16/9/21.
//  Copyright © 2016年 Autohome. All rights reserved.
//

#import "ABSService.h"
#import "ABSCommonParamsGenerator.h"

@interface ABSService ()

@property (nonatomic, strong) ABSCommonParamsGenerator *paramsGenerator;

@end

@implementation ABSService

- (instancetype)init
{
    self = [super init];
    if (self) {
        self.commParamsGenerator = self.paramsGenerator;
    }
    return self;
}

#pragma mark - setters and getters
- (ABSCommonParamsGenerator *)paramsGenerator
{
    if (!_paramsGenerator) {
        _paramsGenerator = [[ABSCommonParamsGenerator alloc] init];
    }
    return _paramsGenerator;
}

#pragma mark - ABServiceProtocal
- (BOOL)isOnline
{
    return NO;
}

- (NSString *)onlineApiBaseUrl
{
    return @"https://appt01.corpautohome.com";
}

- (NSString *)offlineApiBaseUrl
{
    return @"http://10.168.66.153";
}

- (NSString *)onlinePublicKey
{
    return @"";
}

- (NSString *)offlinePublicKey
{
    return @"";
}

- (NSString *)onlinePrivateKey
{
    return @"";
}

- (NSString *)offlinePrivateKey
{
    return @"";
}

- (NSString *)onlineApiVersion
{
    return @"";
}

- (NSString *)offlineApiVersion
{
    return @"";
}

@end
